<%@page import="bean.BoardVO"%>
<%@page import="bean.BoardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/boards.css"/>
<script type="text/javascript" src="../js/boards.js"></script>
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="board" class="bean.BoardVO" scope="page"/>
	<jsp:setProperty property="*" name="board"/>
	
	<%request.setCharacterEncoding("utf-8");%>
	
	<h1>학점 입력 결과</h1><hr/>
	<%	
		BoardDTO dto = new BoardDTO();
		dto.setVo(board);
		if(dto.repInsert()){
			%><script type="text/javascript">alert("답글 입력 되었습니다.")</script><%	
		}else{
			%><script type="text/javascript">alert("답글 입력이 실패 했습니다.")</script><%
		}
	%>
	<div style="font-weight: bold;">글번호: <%=board.getNo() %></div>
	<div style="font-weight: bold;">부모: <%=board.getGrp() %></div>
	<div style="font-weight: bold;">내용: <%=board.getTitle() %></div>
	<div>자식 확인:<%=board.getSeq() %></div>
	<div>부모 확인:<%=board.getLvl() %></div>
	<h2>답글 입력이 완료되었습니다.</h2>
	<input type="button" id="btnList" value="회원 목록"/>
</body>
	<script type="text/javascript">inputInit();</script>
</html>